package cn.net.wangsu.ssq.models

import java.time.LocalDate
import java.util.*
import javax.persistence.Entity
import javax.persistence.Id

@Entity
class SsqMD5Result(
        @Id
        var issueID: String = "",
        var date: LocalDate,
        var red1: Short,
        var red2: Short,
        var red3: Short,
        var red4: Short,
        var red5: Short,
        var red6: Short,
        var blue: Short,
        var binaryResult: String = ""

){
        constructor(ssqHistory: SsqHistory):this("",LocalDate.now(),0,0,0,0,0,0,0){
                this.issueID=ssqHistory.issueID
                this.date=ssqHistory.date
                this.red1=ssqHistory.red1
                this.red2=ssqHistory.red2
                this.red3=ssqHistory.red3
                this.red4=ssqHistory.red4
                this.red5=ssqHistory.red5
                this.red6=ssqHistory.red6
                this.blue=ssqHistory.blue
        }
}
